import request from '@/utils/request'

// 查询文件存储列表
export function listfileManagement(query) {
  return request({
    url: '/file-store/fileManagement/page',
    method: 'post',
    data: query
  })
}

// 查询文件存储详细
export function getfileManagement(id) {
  return request({
    url: '/file-store/fileManagement/' + id,
    method: 'get'
  })
}

// 新增文件存储
export function addfileManagement(data) {
  return request({
    url: '/file-store/fileManagement',
    method: 'post',
    data: data
  })
}

// 修改文件存储
export function updatefileManagement(data) {
  return request({
    url: '/file-store/fileManagement',
    method: 'put',
    data: data
  })
}

// 删除文件存储
export function delfileManagement(id) {
  return request({
    url: '/file-store/fileManagement/' + id,
    method: 'delete'
  })
}
